#include"stdio.h"
main()
{
	int x,low,hight,mid;
	int a[10]={1,2,3,4,5,6,7,8,9,10};
	printf("Enter x=");
	scanf("%d",&x);
	low=0;
	hight=9;
	while(low<=hight){
		mid=(low+hight)/2;
		if(x==a[mid])
			break;
		else if(x<a[mid])
			hight=mid-1;
		else
			low=mid+1;
	}
	if(low<=hight)
		printf("%d=a[%d]\n",x,a[mid]);
	else 
		printf("Not Found.\n");
	return 0;
}

